Code Monkey home page Code Monkey logo

Comments (5)

bootandy avatar bootandy commented on June 10, 2024

That sounds like a good idea.

I was not aware that this would be a problem but it makes sense. I'll look at copying everything to /tmp for the tests.

from dust.

bootandy avatar bootandy commented on June 10, 2024

An alternative would be to determine what file system we are looking at and then adjust the tests accordingly.

We could also run the tests as 'result == X or result == Y or result == Z' and let any of them pass.

This needs some thought and it should be resolved.

Windows users were also reporting inconsistent numbers on their machines.

from dust.

Celti avatar Celti commented on June 10, 2024

I think adding specific per-filesystem test results is doomed to failure from the outset — there are simply too many choices, where do you draw the line as to adding a new filesystem? Whose job is it to then update all those filesystem-specific results? What if one filesystem's success matches also another filesystem's failure?

We already have #[cfg(target_os)] for Mac and Linux, I think adding one more for Windows and then requiring that the tests be run on APFS, tmpfs, or NTFS respectively isn't an unreasonable technical burden on either side.

from dust.

bootandy avatar bootandy commented on June 10, 2024

I think adding specific per-filesystem test results is doomed to failure from the outset — there are simply too many choices,

Agreed.

I am also considering changing the tests so they only look at the file names and ignore the files sizes. However I don't like this idea as we would then loose the ability to test a 'complete' output.

I'm doing a refactor at the minute and I'm keeping testing in mind.

I think your idea of using the /tmp directory may be the best option if the CI runners allow it.

from dust.

bootandy avatar bootandy commented on June 10, 2024

1f120de

This commit copies the tests files to the /tmp/ directory this should fix it.

from dust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.