bors
78552ebd7a
Auto merge of #141 - cjpearce:fix/run-panics-on-compile-fail, r=komaeda
...
Stop run from panicking when compile fails
Currently if you use the `rustlings run` command and your program fails to compile, rustlings will panic while trying to exit.
First I've added a couple of integration tests to cover this case, which also meant moving a few tests so that the new fixtures didn't cause `verify_all_success` to fail.
Then I noticed that the existing integration tests that test for failure pass even when rustlings panics, preventing the new tests from failing. I've updated the integration tests to distinguish between when rustlings has failed in the way that we want (exit code 1) rather than a panic (exit code 101).
Finally I fixed the actual panic, which was just caused by unwrapping when rustlings should probably be exiting cleanly.
6 years ago
Chris Pearce
0c7bd12372
Fix test failing due to panic
6 years ago
Chris Pearce
3d11d7685b
Modify integration tests to fail on panic
6 years ago
Chris Pearce
592ae6b4d2
Add process id to temp file name
6 years ago
Chris Pearce
4fa79ee02f
Extract command builders into util
6 years ago
bors
fbd0ccbd5b
Auto merge of #134 - rust-lang:fix/windows-paths, r=komaeda
...
fix watch command path execution
@hades32 @guttume could you test whether this works on windows by checking out the branch locally and running `cargo run watch`?
6 years ago
komaeda
8c008a0e7d
Merge pull request #137 from mgeier/patch-1
...
Fix order of true/false in tests for executables
6 years ago
Matthias Geier
11fe19d08a
Fix order of true/false in tests for executables
...
1b3469f236
has fixed the tests themselves, but now the original error shows itself.
6 years ago
liv
1b3469f236
make installation command checks more thorough
6 years ago
liv
022921168d
fix watch command path execution
6 years ago
komaeda
c6765eb3eb
Merge pull request #133 from zacanger/bug/permissions
...
Fix permissions on exercise files
6 years ago
zacanger
c5a374fbf2
Fix permissions on source files
6 years ago
lyn
f3ee70489f
1.1.0
6 years ago
lyn
6a27ba735c
cargo fmt
6 years ago
komaeda
91dce31265
Merge pull request #131 from ColinPitrat/master
...
Verify that rust version is recent enough to install rustlings.
6 years ago
lyn
040ca18a64
add travis config
6 years ago
lyn
f43cb124f6
add tests
6 years ago
komaeda
11875aed6e
adjust author name
6 years ago
Colin Pitrat
f07703eb7a
Fix comment position
6 years ago
Colin Pitrat
fd4eda8bda
Verify that rust version is recent enough to install rustlings.
...
I would have liked to write some tests for the vercomp function I
introduce, but there doesn't seem to be any CI setup yet?
6 years ago
komaeda
bf8d927ab2
Merge pull request #123 from kisom/master
...
Be nicer when rustlings isn't run from the right directory.
6 years ago
Kyle Isom
9fc4a83987
Be nicer when rustlings isn't run from the right directory.
...
Before, rustlings would panic if it wasn't in the right directory. It
took me a minute to figure out why, and this wasn't my first intro to
Rust. It would probably help new users if they saw a helpful message
instead of a stack trace.
6 years ago
komaeda
63280ed9e4
Merge pull request #119 from LesnyRumcajs/patch-1
...
Add standard library types to exercises suite
6 years ago
komaeda
25f9d61410
Merge pull request #124 from kisom/update-link
...
errors2.rs: update link to Rust book.
6 years ago
Kyle Isom
c1f4257a91
errors2.rs: update link to Rust book.
6 years ago
komaeda
8f9d7ce3d8
Merge pull request #120 from abagshaw/master
...
Start verification at most recently modified file
6 years ago
Andrew Bagshaw
3b5dfac44e
Remove unnessecary whitespace
6 years ago
Andrew Bagshaw
a6a8b61b12
Change to \n
6 years ago
Andrew Bagshaw
6cd42bb821
Add clear break between verify executions
6 years ago
Andrew Bagshaw
4d7ce6e571
deduplicate
6 years ago
Andrew Bagshaw
3f114cc069
Start verification at most recently modified file
6 years ago
LesnyRumcajs
58ccd72aff
Add standard library types to exercises suite
6 years ago
lyn
abf175111d
clippy-ify
6 years ago
lyn
9144c816bf
remove obsolete paragraph on `--test` flag
6 years ago
lyn
999601d828
1.0.1
6 years ago
lyn
10d4d61d19
rework contribution guide for the new toml file
6 years ago
lyn
70e59cca3c
standardize exercise running via an external toml file
6 years ago
komaeda
7d6e2812fb
Merge pull request #117 from shaunbennett/master
...
Watch for file creation events in watch mode
6 years ago
lyn
05e8f02d0a
edit readme to use the install script
6 years ago
lyn
9a14d72f08
add a basic install script
6 years ago
lyn
244a0816ac
1.0.0
6 years ago
Shaun Bennett
04d0f78a2c
Fix file watching for vim swap files
6 years ago
komaeda
5d1d0407ca
update cargo.toml authors
6 years ago
komaeda
b199aa04ba
Merge pull request #115 from h-michael/verify
...
Add thread exercises to verify entrypoint
6 years ago
Hirokazu Hata
5cd5be8847
Add thread exercises to verify entrypoint
6 years ago
liv
02ceb0ba8c
fix test command execution
...
seems like i forgot that you actually need to run executables created
with `rustc --test`! this also reworks the "test1" exercise a bit
closes #108
6 years ago
liv
17fa037a16
add another note for Xcode 10+
6 years ago
liv
1922b76ada
add a note regarding macos xcode dev tools
6 years ago
liv
c6a313d1a8
replace old repository references
6 years ago
komaeda
f840212d68
Merge pull request #112 from JPMoresmau/bugfix/readme_typos
...
Bugfix/readme typos
6 years ago