• 17 Posts
  • 95 Comments
Joined 1 year ago
cake
Cake day: October 14th, 2023

help-circle
  • You are probably right and I just misunderstood fixtures / collections and how they work. I am now trying to configure it using postgres testcontainers and just letting each test create its own but facing a bunch of other issues so not even sure how this works anymore, seems like every tutorial has a different approach. Some just put all the code for creating containers in the setup/dispose of the test class itself instead of trying to be smart with the WebApplicationFactory fixtures and maybe I just end up doing that


  • My first intent was to just have one local sqlite test db that would get reset to empty state before the tests run (EnsureDeleted+EnsureCreated), and then they all run concurrently on it. It sounded simple to setup and simple enough for my small crud app that only had a few tests.

    My second intent was for the framework to create a new in-memory sqlite db for each test so I could fix the problem with tests failing when I’d run all of them at the same time, presumably because they all referenced the same db.

    I am currently trying to complicate my life further in the hopes it helps with this by using a postgres database instead, and then in the IntegrationTests project I’m using TestContainers to get a PostgreSqlContainer. I am currently suffering because of some change I made so my tests aren’t even being found anymore now, despite being listed in the test explorer when I run them I get “Test discovery finished: 0 Tests found” in output. Honestly I think I’m just gonna give up integration testing like this, it’s been a complete waste of time so far.

    Dunno what else I could say about my project that is relevant, it’s a standard webapp crud with 2 controllers and the integration tests projects has facts like this. Very basic stuff I’d say. Unit tests are a separate project and will just be for simple method checks, no mocking (or at least as little as possible)


  • Configuring a DbContextFactory in the WebAppFactory instead of a DbContext breaks my services, they can’t resolve DbContext anymore so all requests from my test classes fail. Either I misunderstood you or how this works, but it makes sense - I need to properly fix the injectable DbContext so it fixes it everywhere and not just add a DbContextFactory for test classes while the actual code still injects a DbContext.

    Configuring the DbConnection service scope as Transient didn’t change anything.

    I might consider efficiency and speed later but for now I’d be happy to just get it working on this simple CRUD app with 2 test classes, I’ve spend hours trying various google solutions and I’m a bit frustrated there is no simple guide for something that should be so seemingly simple at this point.





  • I only used obsidian for a few weeks so i didnt get that used to it, but what you mean could be the mental switch from hierarchical file structure in obsidian to logseq’s journaling/time based one? You’re supposed to organize data with tags rather than remembering their location and structure in folders. I spend most time searching for tags, not specific files, and in that way it’s functional enough for me, although I do not really understand the query syntax yet so I am unable to create more complex searches in this way. Tbh I’m hoping the sqllite switch lets me just write direct SQL

    For a specific example, instead of having folders like Software > Programming > csharp > my projects > projectx … I will just have a page for the project that has tags #programming #csharp #myprojects etc. And then I can search for #myproject and see all relevant info for it, even sorted by the date when i added it which adds some nice historical context



  • It’s no reddit in terms of quantity but honesty I’ve had higher quality topics and discussions here than there. Lemmy/kbin might not have taken off in the mainstream to offer a variety of subjects but when it comes to tech and software I think it’s covered well enough and people are generally nicer about it. The main problem is lack of (remotely) good seach function, I dont think the threads are getting indexed by google and the on-site search is atrocious.

    I don’t know of any discord programming communities, I wish forums were still a thing but the only live one I know of is the jellyfin one after they moved from reddit. Other than that it’s here or the various subreddits












  • I have a mastodon account, I still check it occasionally and I’ve tried making it work a year ago, being active on it and following either people or hashtags. I also tried other networks like bsky and cara, or mastodon through kbin integration. None of them really worked out.

    I didn’t have an issue with the technical side as much as with the community and its mentality. They all have this persecution complex where everyone is out to get them and destroy their way of living. They simultaneously claim it’s better and more morally superior than twitter while also responding to any questions or feedback with “if you don’t like it GTFO”. Most of the posts I’ve seen on mastodon seemed masturbatory and/or talking about other social networks and why are they bad than why is mastodon actually good. In many ways it was more toxic and negative than my carefully curated twitter feed. There’s also as much doom and gloom as on twitter, if not more, when it comes to politics (or at least, it’s harder to hide it).

    The content in general was bad and boring but I don’t know if this is because of the type of people that are on it or just because the lack of algorithm means I will see any random person’s ramblings next to the biggest breaking news that I’m actually interested in. There is a lack of innovation in this area and it makes discoverability and content curation terrible, I don’t need an algorithm to read my mind but at the very least I wish it could separate trash from actual popular topics.

    I found some interesting niches when it comes to FOSS developers and tech but I found next to no actual game devs, artists or content creators on it and even the usual “copy content from twitter” bots were unreliable and uncommon.

    TL;DR Mastodon seems very very niche and is not currently viable as a general replacement for other social networks, and IMHO due to the community culture there it’s never going to grow into anything else either.



  • I was aware of some people trying to get it working on wine but last I checked it wasn’t really going anywhere, there were some big blockers there, and I didn’t know the developers were interested in it at all.

    Fork and VS are probably the top 2 pieces of software I’m missing to fully migrate to linux so I’d be very happy if they developed an official port that works as well as it does on win.