#C# Football Match Reports test appear to be broken

24 messages · Page 1 of 1 (latest)

drifting ledge
#

Apologies if I've done something dumb.
The online tests appear to be failing to run for the C# "Football Match Reports" problem.
When I submitted the below code, the "Tests" tab on the website displays the attached compile error.

public static class PlayAnalyzer
{
    public static string AnalyzeOnField(int shirtNum)
    {
        throw new NotImplementedException($"AAAA");
    }

    public static string AnalyzeOffField(object report)
    {
        throw new NotImplementedException($"BBBB");
    }
}
winter wharf
#

+cc @serene current

wooden light
drifting ledge
#

Yes.

wooden light
#

well yeah, then of course it would throw all that error.
You havent solve the exercise at all nor giving the test suites all the functions that it wanted.

drifting ledge
#

I've tried submitting actual solutions before, but wanted something concise to try to rule out there being something odd with my code.

wooden light
#

c# is compiled, so you would need to provide all the things that the test suite wanted before it even "run" properly to show you which test fail by which value

drifting ledge
#

The compiler shouldn't care if I've solved the exercise, and I have included all of the functions that the tests reference.
The missing names seem to be Fact, FactAttribute, and Assert.

vestal marlin
#

I'm not so sure, glaxxie. I'm having the same problems with the very first "Hello, World!" exercise. I think something is broken with the new test changes.

#

Looks like there is a mismatch between the new "implicit using" default with .NET 9

wooden light
#

oh i see. should have mention that part first 😅

drifting ledge
#

Also, and I apologise for not mentioning this in the OP, but the tests run fine on my own machine.

vestal marlin
#

I can compile and pass all tests locally, but when submitting, I get the same namespace errors as @drifting ledge

wooden light
#

let me log on and give it a try as well

vestal marlin
#

the initial code that is provided, there are no "using" statements in the provided test file, so that should imply the system is expecting to utilizing implicit using statements. Otherwise, the very first exercise is expecting you to know about imports and find that error within the provided test file without any direction.

#

And while I am a seasoned developer, I find that a strange ramp in difficulty for a Hello, World exercise. And therefore, I assume there is a config error somewhere.

wooden light
#

Yeah this is error from the website. I suppose it propagate after the update to .NET 9 like you said. Probably best to create a thread on the forum to notify Erik.

#

@drifting ledge @vestal marlin either of you guys want to do that?

#
Exercism

Hi everyone, I’m getting an error when trying to solve the “Log Analysis” exercise. The error occurs when trying to test the code. Here is the error: LogAnalysisTests.cs(5,6): error CS0246: The type or namespace name 'FactAttribute' could not be found (are you missing a using directive or an assembly reference?) LogAnalysisTests.cs(5,6): error...

#

well, for now I suppose you should continue working locally and then submit them later when this got resolved

drifting ledge
#

If I submit them now, with the tests be re-run once this is fixed?

wooden light
#

they will be re-run 100% after the change. What im not sure is if a failed submit will still be "logged" for ease of future usage.

#

i often work locally to pass stuff first before submit so some of the behavior of the online editor is still a bit elusive to me, sorry

drifting ledge
#

I generally work locally too - it looks like the online editor doesn't allow me to submit at all.
Thank you for the help though.