-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Common code unit tests are not run in PhET-iO brand #191
Comments
After the above commit, I'm pretty sure that axon is going to start failing on CT, as that was what I found to be the case when beginning to work on phetsims/axon#316, but it is better for it to be load failures instead of quiet ones. Tagging @jonathanolson to make sure that it is alright to use Tagging @samreid and @chrisklus to note that we have failing axon unit tests in phet-io brand (another issue coming soon). And also to note that this is likely not complete, we my want to brainstorm more complete solution. |
Also, I wonder if this would be solved by adding phet-io unit tests to pre-commit hooks. |
Would it be reasonable to say "all tests run in ?brand=phet-io" and we endeavor to make the phet brand unit tests a subset of phet-io brand unit tests? |
I was a little on the fence thinking about all of the above sims that don't support PhET-iO brand, but especially after the above commit, I think that it is still the way to go. The above work now makes scenery run successfully in scenery. I would say it was 90% busy work, but it still felt like important clean up. The other 10% were actual PhET-iO tests that were broken and hadn't been run anytime recently. Wahoo!! Next steps for this issue:
|
Running all unit tests in both brand=phet and brand=phet-io sounds appropriate and in line with the long term vision of our project. For repos that have no special phet-io features, they will run redundant tests, but I believe that is OK because most unit tests are fast to run. If and only if we decide that is taking too long, then I'd recommend pursuing a strategy where we only (or predominantly) run tests in phet-io brand, and make sure the phet brand tests are run as a subset. For the rare cases where we need to test something in phet-brand, that could be listed as a special case. I skimmed the commits and didn't have further recommendations. Thanks @zepumph! |
Looking through
listContinuousTests.js
, I don't see a way that common code is being tested in phet-io brand. This is because repos liketandem
andaxon
are not inperennial/data/phet-io
, as they aren't runnable phet-io repos. For right now, I will just manually add them to make sure they get unit tested in phet-io brand.The text was updated successfully, but these errors were encountered: