Comments (11)
Excuse me for intruding in English, but I have the same issue as mentioned above. Even if all sources build and tests on the server fail, local tests wil pass without running when using the plugin 'Run Tests' menu item, or the toolbar button. If I run the tests using IntelliJ functionality, they fail as expected.
from tmc-intellij.
@rlmhermans Hiya Ruud! I got your message on IRC. Thanks so much for the interest! I spoke with the maintainer, and if he gets the chance next week, he'll push out a new version with the fix to this issue to the plugin repository.
from tmc-intellij.
Just to add, if you need a fix urgently, it's possible to package the plugin into an JAR which can be installed manually with IntelliJ. You'd just clone the repo with the fix, set up the environment and deploy: https://www.jetbrains.org/intellij/sdk/docs/basics/getting_started/deploying_plugin.html
Of course, it's a bit of an inconvenience to have a bunch of students install the plugin manually, but it's an option until the update gets pushed.
from tmc-intellij.
Antaako mitään virheviestiä?
from tmc-intellij.
Raportoin tähän ketjuun oman samankaltaisen bugihavainnon (In English below):
Järjestelmä/System
Ubuntu 16.04 xenial (x86-64)
IntelliJ 2016.3
Paikalliset testit eivät ole toimineet millään hy-s2016-wepa -kurssin tehtävistä joissa olen niitä kokeillut. Esimerkkinä vaikkapa W6-57.LowestPrices.
TMC-plugin antaa välittömästi viestin "All tests passed! Would you like to submit the excercise?" vaikka tehtäväpohja on koskematon. Viesti tulee niin nopeasti, ettei plugin selvästi aja mitään testejä. Serverille lähetys (ja testit serverillä) ovat kyllä tomineet nähdäkseni oikein.
In English:
None of local tests have worked so far in course hy-s2016-wepa. This happens e.g. in exercise W6-57.LowestPrices. TMC Plugin just immediately prompts "All tests passed! Would you like to submit the excercise?" even though the excercise hasn't been completed. Submitting to server (and tests on server) seems to work correctly.
from tmc-intellij.
@jippo444 Samaa saan, avasin tuolle oman issuen #113 / Confirmed, I opened an issue for that.
from tmc-intellij.
@jippo444 Jos vaihdat environment variablen JAVA_HOME
:n osoittamaan asennetun Java JDK:n kansioon JRE:n sijaan, lisäät jdk kansion bin-kansion PATH
:iin, sitten käynnistät IDEAn uudestaan, toimivatko testit? Toimivatko testit jos avaat konsolin, navigoit testikansioon ja pyörität mvn test
?
from tmc-intellij.
Jos ajan tehtävän W6-57.LowestPrices testit konsolin kautta ('mvn test') tai hiiren oikealla näppäimellä testikansiosta ("Run 'All Tests'"), ne toimivat oikein. Results : Tests run: 2, Failures: 0, Errors: 0, Skipped: 0 Tehtävä on siis tässä vaiheessa tehty ja mennyt läpi myös serverillä, joten testien pitäisikin mennä läpi.
Kokeilin tätä myös tehtävässä W6-60.Reservations, jossa on enemmän testejä. Results : Tests run: 11, Failures: 0, Errors: 0, Skipped: 0. Kun teen tehtävään "bugin" (muutan koodia niin, että se kyllä kääntyy oikein, mutta ei toimi tehtävänannossa edellytetyllä tavalla), kaikki testit eivät mene läpi, kuten ei pitäisikään:
Tests run: 11, Failures: 2, Errors: 0, Skipped: 0, Time elapsed: 8.06 sec <<< FAILURE! - in wad.controller.ReservationTest
overlappingReservationsAllowedForDifferentApartments(wad.controller.ReservationTest) Time elapsed: 0.029 sec <<< FAILURE!
java.lang.AssertionError: When two reservations have been posted to /reservations, they both should be added to the database. expected:<2> but was:<1>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at wad.controller.ReservationTest.overlappingReservationsAllowedForDifferentApartments(ReservationTest.java:282)
ableToSetAsPaid(wad.controller.ReservationTest) Time elapsed: 0.025 sec <<< FAILURE!
java.lang.AssertionError: When two reservations have been posted to /reservations, they both should be added to the database. expected:<2> but was:<1>
at org.junit.Assert.fail(Assert.java:88)
at org.junit.Assert.failNotEquals(Assert.java:834)
at org.junit.Assert.assertEquals(Assert.java:645)
at wad.controller.ReservationTest.ableToSetAsPaid(ReservationTest.java:298)
SDK:na on ollut koko ajan Ubuntun mukana tullut java-1.8.0-openjdk-amd64. Jos SDK:na olisi JRE, kokemukseni mukaan projekteja ei pystyisi ylipäätään rakentamaan tai ajamaan.
Kokeiltuani, että testit toimivat tehtävässä W6-60.Reservations, jätin koodiin bugin, joka aiheutti kahden testin epäonnistumisen testejä ajettaessa, ja kokeilin vielä ajaa paikalliset testit TMC:n painikkeesta ja TMC:n valikosta. Molemmilla tavoilla tulos oli aiemmin kertomani: välitön ilmoitus että testit menivät läpi. Liitteenä vielä screenshot tilanteesta sen jälkeen, kun testit on ajettu TMC:n painikkeen kautta:
from tmc-intellij.
I have cloned the repository and ran the plugin in the IntelliJ sandbox. It works properly there. I built and ran it using the 2017.1.3 plugin SDK.
from tmc-intellij.
@rlmhermans After setting up the test environment, can you confirm that the issue is still present in the release version? If so, can you please check if javac
is in your path by just attempting to run javac
in a console
from tmc-intellij.
@cxcorp I just started IntelliJ, the problem is now gone. This was after a reboot, which I didn't try before. So either it's that, or setting up the dev environment fixed it. For that, I did add the IntelliJ plugin SDK, perhaps that helped?
Otherwise, I checked, I didn't have javac in my path. But the plugin already worked before I readded it.
from tmc-intellij.
Related Issues (20)
- UninitializedHolderException when selecting course
- Error when running local tests HOT 2
- NullPointerException when pressing button for next exercise HOT 4
- "Download course exercises" failed with error message on first attempt. Subsequent attempts fails silently HOT 1
- Mac ( High Sierra) Not Downloading Courses
- TMC for IntelliJ on mac doesn't work at all
- The colour green in Test Results bar is way too bright
- NullPointerException on pressing run test for current project
- IDE Fatal Error when Running test HOT 3
- PLEASE add support for newest IntelliJ
- Using version 2.0.2 tests fail to run HOT 2
- intellij TMC Plugin error
- IntelliJ plug in errors
- java.lang.NullPointerException
- IDE Fatal Error. Java.lang.NullPointer Exception HOT 2
- "Run tests for current project" isn't working
- Getting a nullpointer exception when trying to submit an exercise
- Cannot process toolwindow TMC Project List
- Plugin fails to start on IntelliJ 2022.2.3
- TMC plugin does not start on Intellij HOT 3
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 tmc-intellij.