Comments (11)
It's at http://web.mit.edu/music21/doc/developerReference/usingGit.html?highlight=multiprocesstest at the bottom. I will separate this out to another document since people not using Eclipse will miss it. It doesn't belong in the top level README file since we have about 50 people using the system for everyone developing it. (regrettably).
from music21.
Ah thanks, I missed that. Yes, I agree it would be good to separate it out and place it somewhere more prominent (when I searched for "test" in the Developer Reference section there was no match). I can see that the toplevel README file is not the right place for this kind of information, but it could be a good idea to add another README file in music21/test
because just from looking in that directory it's not obvious which file is the main test file to run (for example, I personally would never have thought of running multiprocessTest.py
). I wasn't even sure whether it's the correct directory to look at because when I grepped for "test" in the code base it also returned a lot of matches in the regular code files, so I thought that perhaps running "py.test" from the toplevel directory would be enough (and indeed it returns 172 passed tests, but multiprocessTest.py
appears to run some additional ones).
from music21.
Max -- it's probably not so high priority any more now that TravisCI will flag any pull requests with problems and point to the test program.
from music21.
Fair enough. It's still nice to be able to run the tests locally, though, and I guess a brief entry in a README file would be sufficient so that someone looking for this information can discover it. It's just that there is a variety of testing frameworks out there, and almost every open source project seems to apply its own little twist to them so it's helpful to know what the correct incantation is to run the tests without having to guess.
from music21.
Okay, I'll keep it as a to-do to improve the developer docs for that or happy to take a pull request.
from music21.
does running a test locally always imply one needs to install first? or is there some clever PYTHONPATH manipulation or other trick that will allow testing the local changes without installing?
from music21.
No you definitely can't run tests without an installation. But making local changes to an installed version will definitely be reflected in the tests -- a new commit and installation is not required. Run test/multiprocessTest.py to check first (and if you're used to Py2 only, run it on Py3 and vice-versa) then if that looks good you can run test/singleCoreAll.py (5x slower) or by that point go ahead and make a pull request.
from music21.
Thanks to this thread, at least there's some info on test running. :-)
from music21.
This two commands work for me
python -c 'from music21.test.testSingleCoreAll import travisMain as tm; tm()'
python -m unittest -vvv music21.converter.subConverters.Test.testXMLtoPNGtooLong
from music21.
http://web.mit.edu/music21/doc/developerReference/testing.html
from music21.
@mscuthbert Maybe using a Makefile
would be a good way to explicitly reference the test command? One of the first things I and many developers do in a repo is look for a Makefile for run/build/test commands.
from music21.
Related Issues (20)
- When there are no barlines HOT 2
- Add xmlID as a property of at least note and rest objects when parsing xml/mei scores HOT 1
- Midi to MusicXML? HOT 1
- In ABC notation, inline notation of key and time signature changes in the middle of a song using [] does not convert correctly to MusicXML.
- Diminuendo doesn't span all elements that are part of it HOT 2
- Chord symbol "Co omit5" does not parse
- Chatgpt--Music21 HOT 1
- simplifyMultipleEnharmonics gives different spellings in different octaves
- MusicXML import of scores which include drumset parts loses most of instrument information HOT 1
- Chord clarifciation HOT 2
- Issues with install the music21 library in kaggle notebook HOT 1
- Missing humdrumPosition in thisSpine.stream.flatten() with root cause analysis HOT 1
- Measure.rightBarline not being correctly set when appending bar.Repeat HOT 1
- Incorrect Key Signature Parsing in MEI Files
- can't run tests because of lilypond import issue HOT 1
- tinyNotation --> tiny doc clarification ;)
- Voices changing staffs
- Tiny doc clarification HOT 3
- Allow objects to be in multiple sites
- expandRepeats don't work as expected HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from music21.