-
Notifications
You must be signed in to change notification settings - Fork 33
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
The IDE says that it can't run tests Introduction / Getting started / Hello World #265
Comments
It is happening to me, if you look in the directory the test should be blank: ❯ cd ~/Downloads/rust/Learn Rust/Introduction/Getting started/Hello World
❯ ls -lha tests/tests.rs
.rw-r--r-- wolf users 0 B Sun Jun 11 09:59:09 2023 tests/tests.rs
❯ ls -lha src/main.rs
.rw-r--r-- wolf users 45 B Sat Jun 10 02:56:15 2023 src/main.rs But in this repository, the test file has some code. I wonder why it is empty. Let me try to do some tests to check if I find a solution. You can get the path with these steps: |
I found the possible problem, but it needs confirmation from JetBrains Academy. If you go to the plugin page, Learn Rust in the version section. Then download the file version 17. And extract the Zip file, it will show a JSON file ( But, in this repository exists the test file with the code Introduction/Getting started/Hello World/tests/tests.rs. Possible solution: I will download this repository, then copy and paste all the folders (Introduction, Common Collections, etcetera) into my directory created by JetBrains academy, in my case is
|
I copied all the files and content from this repository to the created folder by JetBrains Academy, and it didn't work. I copy only the ❯ ls -lha
drwxr-xr-x wolf users 4.0 KB Sun Jun 11 23:22:27 2023 .
drwxr-xr-x wolf users 20 KB Mon Jun 12 00:20:07 2023 ..
drwxr-xr-x wolf users 4.0 KB Mon Jun 12 00:46:56 2023 Learn Rust
drwxr-xr-x wolf users 4.0 KB Sun Jun 11 23:52:10 2023 rustlings-course cd ./rustlings-course
find . -type f -iname "*test*\.rs" -exec cp -r --parents {} ../Learn\ Rust \;
cd .. Next problem: every time I click the /home/wolf/.cargo/bin/cargo test --message-format=json-diagnostic-rendered-ansi --no-run --color never --manifest-path "/home/wolf/Downloads/rust/Learn Rust/Introduction/Getting started/Hello World/Cargo.toml" It will never run the test because this command has a parameter for “not run”. Furthermore, every time the On the other hand, if you try to run in the Cargo in the CLion as the tutorial of this manual shows in the Introduction section, then it is working, but it doesn't make the check in the course. Not forget to copy the test files from this repository: cd ./rustlings-course
find . -type f -iname "*test*\.rs" -exec cp -r --parents {} ../Learn\ Rust \;
cd .. /home/wolf/.cargo/bin/cargo test --color=always --test tests --manifest-path "/home/wolf/Downloads/rust/Learn Rust/Introduction/Getting started/Hello World/Cargo.toml" The output is:
This screen is when all is good using the Cargo tool view. Final note: I don't know exactly what is the problem or problems, but I hope that this little research helps to fix this course. I am very exciting about completing it, but if every time I tap the |
same question on IDEA 2023.2 and 2023.1.5 |
@DaniilBogdanovJB could you please take a look at this? all the earlier unassigned issues seem to be somehow related |
Hello there, Please try removing the course project folder, re-downloading it from the Academy Marketplace, and checking if the problem is still reproducible. |
It is true, it is working. Maybe some fix from this repository or the I tested this morning (9 hours ago) and it is working. In a few days or weeks, I'll format my computer and re-install Arch Linux, I'll test again and provide comments on this issue.
|
We found some an interesting detail regarding this issue: |
The IDE cant run test, you cannot complete the question on Idea Commnunity, (I test this in 2 diferent linux distributions) and not found any solution on internet
No tests have run. For more information, see the Troubleshooting guide
The text was updated successfully, but these errors were encountered: