1,102 Matching Annotations
  1. Jan 2022
    1. Dr. Cecília Tomori. (2021, December 27). Maryland—Just awful to watch what’s unfolding. Now at 1714 hospitalizations ⬆️ 130 in 24 hrs. 16.5% test positivity. Some counties have acted but no statewide 😷 policy! No measures to slow the spread. Https://coronavirus.maryland.gov https://t.co/C03cSRO2AX [Tweet]. @DrTomori. https://twitter.com/DrTomori/status/1475503877977948166

    1. Tigran Avoundjian. (2022, January 3). Increases in hospitalizations routinely lag behind cases by a week (sometimes more). Deaths have an even longer lag. On 12/30, we had seen a 56% increase in 7-day hospitalization counts, and today we are seeing an 81% increase week-to-week. We have already passed the Sept peak. [Tweet]. @avoundji. https://twitter.com/avoundji/status/1478092404091588608

    1. This was because dynamic typing doesn’t give the safety net that static typing does. So you write more tests. Which is a good thing.

      Tests are a good thing, but not all devs are even aware of the loss of safety net and so there's no guarantee that using a dynamic language results in more tests.

      Using tests and static-types together would mean that there's whole categories of bugs that get eliminated while also getting more coverage for less lines of test-code.

  2. Dec 2021
    1. Kim Willsher. (2021, December 16). Let’s try again...new “drastic” regulations for anyone planning to come to France from UK. There must be a “compelling” reason. This does not include tourism or business French nationals/residents can return but must have a negative Covid test within 24hrs before departure. 1/2 [Tweet]. @kimwillsher1. https://twitter.com/kimwillsher1/status/1471401803828764682

    1. Tom Moultrie. (2021, December 17). A 1-figure Gauteng update, bringing in data through Wednesday 15/12 (PCR only; by date of collection). The turn continues. On similar metrics (not shown) ALL northern provinces (NW, GT, MP, LP) seem to have now turned. Https://t.co/6Bh3kZsooK [Tweet]. @tomtom_m. https://twitter.com/tomtom_m/status/1471723711287996416

    1. Jay Varma. (2021, December 16). Um, we’ve never seen this before in #NYC. Test positivity doubling in three days 12/9—3.9% 12/10—4.2% 12/11—6.4% 12/12—7.8% Note: Test % is only for PCR & NYC does more per capita daily than most places ~67K PCR/day + 19K [reported] antigen over past few days (1/2) https://t.co/PhxsZq55jn [Tweet]. @DrJayVarma. https://twitter.com/DrJayVarma/status/1471485885447389186

    1. Interactive storiesStorybook enables you to capture various states of a component in a structured format called a story. Each story simulates a particular UI state by rendering the component in isolation and supplying props and mock data.However, some UI states can only be reached via user interaction—click, drag, tap, type, etc. These were previously impossible to model in Storybook. To address this, we've added a new construct in Storybook 6.4 called the play function. That enables you to run scripted interactions after a story is rendered.Consider this play function that fills out a form to trigger a validation:

      I wonder how this can change how we approach component testing / unit tests?

    1. Tom Moultrie. (2021, December 12). Given the comedic misinterpretation of the South African testing data offered by @BallouxFrancois (and many others!) last night ... I offer some tips having contributed to the analysis of the testing data for the @nicd_sa since April last year. (1/6) [Tweet]. @tomtom_m. https://twitter.com/tomtom_m/status/1469954015932915718

  3. Nov 2021
    1. You can think of a test as being broken down into four steps: Arrange Act Assert Cleanup Arrange is where we prepare everything for our test. This means pretty much everything except for the “act”. It’s lining up the dominoes so that the act can do its thing in one, state-changing step. This can mean preparing objects, starting/killing services, entering records into a database, or even things like defining a URL to query, generating some credentials for a user that doesn’t exist yet, or just waiting for some process to finish. Act is the singular, state-changing action that kicks off the behavior we want to test. This behavior is what carries out the changing of the state of the system under test (SUT), and it’s the resulting changed state that we can look at to make a judgement about the behavior. This typically takes the form of a function/method call. Assert is where we look at that resulting state and check if it looks how we’d expect after the dust has settled. It’s where we gather evidence to say the behavior does or does not align with what we expect. The assert in our test is where we take that measurement/observation and apply our judgement to it. If something should be green, we’d say assert thing == "green". Cleanup is where the test picks up after itself, so other tests aren’t being accidentally influenced by it. At it’s core, the test is ultimately the act and assert steps, with the arrange step only providing the context. Behavior exists between act and assert.
    1. I suggest renaming this to something like SomeInterfaceAsTypeWrittenByHand. Because one of the reasons for Simplify is so you don't have to write SomeType by hand. Then add the following to show that Simplify<SomeInterface> is the same as SomeInterfaceAsTypeWrittenByHand. declare const a: Simplify<SomeInterface>; expectType<SomeInterfaceAsTypeWrittenByHand>(a); // Interface is assignable to its Simplified type (created with Simplify, and by hand) expectType<Simplify<SomeInterface>>(someInterface); expectType<SomeInterfaceAsTypeWrittenByHand>(someInterface);
    1. ReconfigBehSci. (2021, October 30). Does there maybe need to be more distinction between points raised for discussion and any actual decision? Without knowing about votes etc., it’s maybe a bit strong to say ‘JCVI wanted x...’? I’ve sat on many bodies with minutes documenting positions I disagreed with [Tweet]. @SciBeh. https://twitter.com/SciBeh/status/1454488759785897987

  4. Oct 2021
  5. Sep 2021
  6. Aug 2021
  7. Jul 2021
    1. Fixtures are created when first requested by a test, and are destroyed based on their scope: function: the default scope, the fixture is destroyed at the end of the test.

      Fixtures can be executed in 5 different scopes, where function is the default one:

      • function
      • class
      • module
      • package
      • session
    2. When pytest goes to run a test, it looks at the parameters in that test function’s signature, and then searches for fixtures that have the same names as those parameters. Once pytest finds them, it runs those fixtures, captures what they returned (if anything), and passes those objects into the test function as arguments.

      What happens when we include fixtures in our testing code

    3. “Fixtures”, in the literal sense, are each of the arrange steps and data. They’re everything that test needs to do its thing.

      To remind, the tests consist of 4 steps:

      1. Arrange
      2. Act
      3. Assert
      4. Cleanup

      (pytest) fixtures are generally the arrange (set up) operations that need to be performed before the act (running the tests. However, fixtures can also perform the act step.

  8. Jun 2021
    1. Christophe Fraser 💙 on Twitter: “Reading Cummings accounts of early creation of Test & Trace, a question I have is when and how it was morphed from aiming to find ~30 contacts per index case, needed to contain spread, into a service that contacts 2-4 contacts per index case, mostly within household.” / Twitter. (n.d.). Retrieved June 28, 2021, from https://twitter.com/ChristoPhraser/status/1408454903249477632

    1. A lot of projects leveraging CDP appeared since then, including the most well-known one—Puppeteer, a browser automation library for Node.js. What about the Ruby world? Ferrum, a CDP library for Ruby, although being a pretty young one, provides a comparable to Puppeteer experience. And, what’s more important for us, it ships with a companion project called Cuprite—a pure Ruby Capybara driver using CDP.
    2. For example, Database Cleaner for a long time was a must-have add-on: we couldn’t use transactions to automatically rollback the database state, because each thread used its own connection; we had to use TRUNCATE ... or DELETE FROM ... for each table instead, which is much slower. We solved this problem by using a shared connection in all threads (via the TestProf extension). Rails 5.1 was released with a similar functionality out-of-the-box.
    1. These kind of tests ensure that individual parts of the application work well together, without the overhead of the actual app environment (i.e. the browser). These tests should assert at the request/response level: status code, headers, body. They’re useful to test permissions, redirections, what view is rendered etc.
    1. The most important guideline to give is the following: Write clean unit tests if there is actual value in testing a complex piece of logic in isolation to prevent it from breaking in the future Otherwise, try to write your specs as close to the user’s flow as possible
  9. May 2021
    1. Method 1: We can grab the PDF Versions of Google’s TotT episodes or create our own posters that are more relevant to the company and put them in places where both developers and testers can’t be ignored.Method 2 : We can initiate something called ‘Tip of the day’ Mailing System from Quality Engineering Department.

      Ways to implement Google's Testing on the Toilet concept

    2. Dogfooding → Internal adoption of software that is not yet released. The phrase “eating your own dogfood” is meant to convey the idea that if you make a product to sell to someone else, you should be willing to use it yourself to find out if it is any good.

      Dogfooding testing method at Google

    1. Aleta, A., Martín-Corral, D., Pastore y Piontti, A., Ajelli, M., Litvinova, M., Chinazzi, M., Dean, N. E., Halloran, M. E., Longini Jr, I. M., Merler, S., Pentland, A., Vespignani, A., Moro, E., & Moreno, Y. (2020). Modelling the impact of testing, contact tracing and household quarantine on second waves of COVID-19. Nature Human Behaviour, 1–8. https://doi.org/10.1038/s41562-020-0931-9

    1. Jonathan Rothberg 🦋. (2021, March 2). Testing works. I test daily. Insist on HOME testing. @michaelmina_lab @JoeBiden Research suggests B.1.526 needs to be closely watched “for its ability to evade both monoclonal antibody and, to a certain extent, the vaccine-induced antibody,” said Fauci [Tweet]. @JMRothberg. https://twitter.com/JMRothberg/status/1366755339912306688

    1. Hall, V. J., Foulkes, S., Saei, A., Andrews, N., Oguti, B., Charlett, A., Wellington, E., Stowe, J., Gillson, N., Atti, A., Islam, J., Karagiannis, I., Munro, K., Khawam, J., Chand, M. A., Brown, C. S., Ramsay, M., Lopez-Bernal, J., Hopkins, S., … Heeney, J. L. (2021). COVID-19 vaccine coverage in health-care workers in England and effectiveness of BNT162b2 mRNA vaccine against infection (SIREN): A prospective, multicentre, cohort study. The Lancet, 0(0). https://doi.org/10.1016/S0140-6736(21)00790-X

  10. Apr 2021