Code Monkey home page Code Monkey logo

Comments (10)

pixelzoom avatar pixelzoom commented on September 18, 2024

(5) This documentation in README.md looks incorrect:

* Left: run in require.js mode with fuzz test
* Middle: build
* Right: run the build version with fuzz test

Should "with fuzz test" be deleted? Or are these boxes only relevant if testTask=fuzzMouse?

from aqua.

pixelzoom avatar pixelzoom commented on September 18, 2024

Hmmm... After a long while, the builds did start. Is testDuration by any chance still keeping each sim open (for 30 seconds?) when there's no fuzzMouse being done?

from aqua.

pixelzoom avatar pixelzoom commented on September 18, 2024

This looks odd:

screenshot_57

area-model-multiplication was failing to build, but there's no error shown above. When I attempted to build it from the command line, here's the error I saw:

grunt
module.js:338
    throw err;
    ^

Error: Cannot find module './lib/coffee-script/register'
    at Function.Module._resolveFilename (module.js:336:15)
    at Function.Module._load (module.js:286:25)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/cmalley/PhET/GitHub/area-model-multiplication/node_modules/grunt/node_modules/coffee-script/register.js:1:63)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)

Is there something wrong with the display of errors?

[EDIT: The specific error for area-model-multiplication went away when I deleted node_modules and ran npm install. But still wondering why the error wasn't displayed in test-server.)

from aqua.

jonathanolson avatar jonathanolson commented on September 18, 2024

(1) test-server/README.md indicates that testBuilt defaults to true. But with http://localhost/~cmalley/GitHub/aqua/test-server/test-sims.html?ea, it built only the first sim (acid-base-solutions). Here's the first part of the console output:
area-model-multiplication was failing to build, but there's no error shown above. When I attempted to build it from the command line, here's the error I saw:

'npm update' and 'grunt' stderr will now be included in the output string, so hopefully this would be caught with an error message in the future.

(2) No boxes other than the first column were filled in:

Presumably caused by the above.

(3) test-server/README.md does not indicate the default value for testDuration.

Done, and updated all of the test-server/test-sims documentation.

(4) If query parameters are passed through to all sims, then why do we need testTask=fuzzMouse and testFuzzRate. Why can't we just specify (e.g.) fuzzMouse=1000?

Very true! I removed testFuzzRate in the above task, and modified testTask to a boolean:

  • True: Keeps the sim open after loading, to test whatever task was provided (e.g. fuzzMouse passed directly)
  • False: Moves to the next sim immediately after the previous sim loads

(5) This documentation in README.md looks incorrect:

Fixed in documentation update above.

Hmmm... After a long while, the builds did start. Is testDuration by any chance still keeping each sim open (for 30 seconds?) when there's no fuzzMouse being done?

I'm not sure, let me know if you experience this more. Could have been caused by the build-style node failure above.

from aqua.

jonathanolson avatar jonathanolson commented on September 18, 2024

@pixelzoom, can you at your convenience (next time you need to test things?) review the documentation and try running it again?

from aqua.

pixelzoom avatar pixelzoom commented on September 18, 2024

I'm trying to confirm that all sims load in requirejs mode. So (following the README) I'm running with ?testBuild=false&testTask=false --- and I'm still seeing sims being built. ?!?

from aqua.

jonathanolson avatar jonathanolson commented on September 18, 2024

testBuilt not testBuild?

from aqua.

pixelzoom avatar pixelzoom commented on September 18, 2024

Typo in my comment, not in my usage:
http://localhost/~cmalley/GitHub/aqua/test-server/test-sims.html?testBuild=false&testTask=false
I see sims being built, and built sims being run.

from aqua.

pixelzoom avatar pixelzoom commented on September 18, 2024

Whoopsie, I did have the query parameter wrong, should be ?testBuilt.

from aqua.

pixelzoom avatar pixelzoom commented on September 18, 2024

@jonathanolson and I discussed separating 'build' and 'run build' into separate query parameters, but will do that when the need arises.

Closing.

from aqua.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.