Comments (6)
If the exercises aren't updated to the latest version consistently, I think @mattludwigs' new Elm version manager should be linked in the READMEs. Elm's updates so far have made pretty radical changes to fundamental features and syntax compared to other languages so it's likely to be a problem -- I know it was for me.
from elm.
Thanks for working through so much of this! I'm afraid we (I) didn't handle the 0.16 -> 0.17 transition very smoothly, and I've had even less time lately to think about this one.
One option might be to add a minimal package.json
to each exercise along the lines of
{
"scripts": {
"test": "elm package install && elm-test *Tests.elm"
},
"dependencies": {
"elm": "^0.18.0",
"elm-test": "^0.18.0"
}
}
We already have a node dependency due to elm-test
. Running npm install
followed by npm test
would actually run the version of elm in the local node_modules
folder, allowing it to not conflict with the global version.
If this solution is acceptable (and is shown to work on windows), the main question that remains is how to communicate it. Maybe add a tiny HOW_TO_RUN_TESTS.txt
file to each exercise? 😄
from elm.
Hi,
I seem to not be able to run tests, even when I try to change the Test file to upgrade it. This is the error I get no matter what I do.
[stdin]:12413
if (typeof Elm === "undefined") { throw "elm-io config error: Elm is not defined. Make sure you call elm-io with a real Elm output file"}
^
elm-io config error: Elm is not defined. Make sure you call elm-io with a real Elm output file
from elm.
The problem above seems to have gone away with elm-test 0.18.2
from elm.
Recommend we use yarn for package management. This would allow easy installation of packages and keep them local to each test and future proof (at least to some degree) for future updates.
from elm.
@rebelwarrior I'm fond of Yarn myself. Though I haven't used it enough to be sure, my understanding is that it should be drop in compatible with npm for our purposes. In other words, we could make a package.json
and tell people to npm install
or yarn install
and everything should work.
from elm.
Related Issues (20)
- Wrong instruction about makeTreasureChest in part 1 of the description in the learning exercise Treasure factory HOT 5
- Small correction in the introduction in the learning exercise Magician in Training HOT 1
- Update strain test HOT 1
- Unsynced docs and metadata HOT 3
- Concept Exercise for Strings HOT 3
- Implement new pop-count HOT 3
- Building a training set of tags for elm HOT 29
- Fill all exercises with accurate "practices" and "prerequisites" concepts
- Parse tags from student solutions HOT 9
- Exercise Binary Search Tree Missing Instructions and Hints
- Concept - Web applications part 1
- Port `reverse-string`? HOT 1
- Add approaches for leap
- Add `protein-translation` and `rotational-cipher` exercises HOT 2
- Add approaches for Allergies practice exercise
- Add markdown linter to CI
- Add test cases to excercise Gotta Snatch'Em All HOT 1
- Concept: recursion
- Concept: bitwise operations
- Windowing System [JS] misguiding instruction for Task 5 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 elm.