python |
Pythonタグが付けられた新着投稿 - Qiita |
【分析】異なる変数尺度同士の関係を数値化する |
https://qiita.com/Takahiro_zzz/items/b558f7633f552a620e0f
|
順序 |
2023-03-20 02:54:01 |
Ruby |
Rubyタグが付けられた新着投稿 - Qiita |
Ruby on Railsの習得のためタスクリスト的なの作ってみる⑤〜認証・トークン発行編〜 |
https://qiita.com/pyon_snore/items/bbc5f91b2e3325164a99
|
rails |
2023-03-20 02:48:37 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS EC2インスタンスのCPUクレジットの確認方法 |
https://qiita.com/keitean/items/9d9451fc67864a957d7c
|
cpucreditbalan |
2023-03-20 02:24:17 |
AWS |
AWSタグが付けられた新着投稿 - Qiita |
AWS EC2インスタンスの初期実行コマンド (ユーザデータ) のログを確認する方法 |
https://qiita.com/keitean/items/46d47fd9c71cb1d98c60
|
varlogcloudinitlogvarl |
2023-03-20 02:09:56 |
golang |
Goタグが付けられた新着投稿 - Qiita |
おめぇも宇宙最強のエンジニアになれ!悟空とベジータのGo言語講座 |
https://qiita.com/void_takazu/items/85038b72555bc9b00ab5
|
rails |
2023-03-20 02:06:18 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
Ruby on Railsの習得のためタスクリスト的なの作ってみる⑤〜認証・トークン発行編〜 |
https://qiita.com/pyon_snore/items/bbc5f91b2e3325164a99
|
rails |
2023-03-20 02:48:37 |
Ruby |
Railsタグが付けられた新着投稿 - Qiita |
おめぇも宇宙最強のエンジニアになれ!悟空とベジータのGo言語講座 |
https://qiita.com/void_takazu/items/85038b72555bc9b00ab5
|
rails |
2023-03-20 02:06:18 |
海外TECH |
MakeUseOf |
Does the iPhone 14 Pro Max Have Any Extra Features? |
https://www.makeuseof.com/iphone-14-pro-max-features/
|
buyers |
2023-03-19 17:45:16 |
海外TECH |
MakeUseOf |
Why the Free-to-Play Fall Guys Has Disappeared From Steam |
https://www.makeuseof.com/why-fall-guys-disappeared-from-steam/
|
disappeared |
2023-03-19 17:45:16 |
海外TECH |
MakeUseOf |
What Is DLL Hooking and How Does It Work? |
https://www.makeuseof.com/what-is-dll-hooking-and-how-does-it-work/
|
great |
2023-03-19 17:30:17 |
海外TECH |
MakeUseOf |
How to Fix the “Your Device Is Offline Try a Different Sign-In Method” Error in Windows |
https://www.makeuseof.com/your-device-offline-different-sign-in-method-windows/
|
How to Fix the “Your Device Is Offline Try a Different Sign In Method Error in WindowsIf you re doing everything right but Windows keeps throwing this error message try these fixes to get it fixed again |
2023-03-19 17:15:16 |
海外TECH |
MakeUseOf |
How to Learn a New Language Using Social Media: 10 Ways |
https://www.makeuseof.com/use-social-media-learn-new-language/
|
language |
2023-03-19 17:05:16 |
海外TECH |
DEV Community |
4 Ways to Automate Visual Regression Tests |
https://dev.to/willkre/4-ways-to-automate-visual-regression-tests-39f5
|
Ways to Automate Visual Regression TestsBefore we get going let s go over some quick questions What does visual regression testing mean Visual regression testing is a process of comparing the visual appearance of an application s UI between two different versions to ensure that there are no unintended visual changes The process involves taking screenshots of various UI elements and comparing them to previously captured screenshots to identify any changes in the visual appearance Visual regression testing helps to ensure that the application s UI remains consistent and visually appealing across different devices browsers and operating systems Why should you automate it Automating visual regression testing can help to identify UI issues early in the development cycle which can save significant amounts of time and money that might otherwise be spent fixing issues later on Think about the time and therefore money that is spent fixing UI quirks that are caught in Q A UAT or production Why wouldn t you automate catching those visual bugs What about manual visual checks Although you can perform manual visual checks it s not recommended to solely rely on them because it takes significantly more time compared to using an automated suite Spotting differences in the UI can be challenging even for subtle visual bugs See the example below can you spot the differences Probably But it d take you a lot longer than an automation suite What percentage of visual bugs are caught by automated visual regression tests Studies from various sources BrowserStack AppliTools etc show that automated visual regression testing can catch most visual bugs with a success rate ranging from to depending on the application s complexity and the testing process used In this article we will explore popular libraries for automating visual regression testing Chromatic Percy Jest Image Snapshot BackstopJS ChromaticChromatic is a visual regression testing tool that is designed specifically for Storybook Chromatic provides a cloud platform which allows users to test and manage the UI components of a project ensuring that any changes made do not result in unexpected visual changes Who uses Chromatic Adobe Auth CircleCI GOV UK BBC etc Pros of ChromaticEasy Integration Having been built specifically for Storybook by the maintainers of Storybook it s seamless to set up for your component library or design system Team Collaboration Chromatic provides a platform for team collaboration by allowing you to share test results with your team members leave comments and discuss any issues Build Analysis Chromatic provides detailed build analysis showing you what changes were made who made them and how they affected your UI components Cons of ChromaticLimited customization options While Chromatic s UI is designed to be easy to use it may not offer as much flexibility or customization as other visual regression testing tools Pricing Chromatic offers a free plan with unlimited collaborators and storybooks However its free tier has a limit of snapshots per month so it s worth considering if the first tier mo is affordable to your team if you think you ll hit that limit Further pricing information can be found here No local testing option Chromatic does not currently offer a way to test visual changes on a local machine before deploying them to the server which could be a limitation for some teams PercyPercy is an all in one visual review platform that offers a wide range of features and integrations It was acquired by BrowserStack which is an industry leader in application and browser testing Percy helps developers catch visual regressions streamline the review process and allows teams to easily collaborate and track changes Who uses Percy Google Sentry Shopify Fastly Basecamp etc Pros of PercyVersatile amp Flexible Percy can be used for visual regression testing in a wide range of applications beyond just Storybook Percy has advanced features such as cross browser testing integrations with popular testing frameworks and a powerful API that allows for more extensive customization and control over your testing processes Scalability Percy scales very well making it easy to manage visual regression tests for even the largest projects Collaboration Percy provides a wide range of collaboration tools including commenting and sharing features that allow developers to work together to identify and resolve issues quickly Cons of PercyLimited customization Some users may find that Percy s out of the box settings and features do not meet their specific testing needs as there are limited options for customization Dependency on external service Since Percy is a cloud based tool developers will need to rely on external service providers for hosting and maintaining the platform which can introduce additional dependencies and potential points of failure Pricing Percy offers a free plan with unlimited collaborators and storybooks However its free tier has a limit of snapshots per month so it s worth considering if the first tier is affordable to your team if you think you ll hit that limit Further pricing information can be found here Which Cloud solution to choose for Storybook In my opinion I would go with Percy if I were already using planning to use it for other visual regression tests e g in Cypress EE test suites so that your visual regression tests are consolidated in a single platform On the other hand if I only needed to perform visual regression tests for Storybook I would opt for Chromatic Chromatic is specifically designed for Storybook by its maintainers making it more compatible and future proof Since Chromatic is optimized solely for Storybook it integrates better with the platform and provides a more streamlined workflow The NPM trends of percy storybook vs chromatic seem to indicate that most people have come to the same conclusion Jest Image SnapshotJest Image Snapshot is a visual regression testing tool built for Jest It allows developers to take snapshots of the rendered components or elements and compare them with the previously stored images to check for any visual differences or changes It works by rendering the component or element and generating an image of the rendered output using a headless browser The generated image is then compared with the previously stored image using pixel to pixel comparison and if any differences are found Jest will report a failed test Who uses Jest Image Snapshot American Express etc Pros of Jest Image SnapshotEasy to Use Jest Image Snapshot is easy to set up and use making it accessible for developers of all levels of experience It integrates seamlessly with Jest a popular testing framework and requires no additional configuration Independent Jest Image Snapshot can be used locally without the need for an external service making it a more convenient and cost effective solution for developers who prefer to test and debug their applications locally Pricing It s an open source project and it s free Cons of Jest Image SnapshotPerformance overhead Local visual regression testing can be resource intensive and running tests can slow down the development process particularly for large scale projects Dependence on Jest As the name suggests Jest Image Snapshot is tightly integrated with the Jest testing framework which may not be suitable for teams using other testing frameworks Limited configuration options While Jest Image Snapshot is easy to set up and use it does not offer as many configuration options as other visual regression testing tools This can be limiting for teams that require more flexibility in their testing BackstopJSBackstopJS is an open source visual regression testing tool for web applications that automates the process of comparing screenshots of the current state of a web application with its previous version to identify any visual changes It uses headless browser automation to simulate user interactions and captures screenshots of web pages BackstopJS can be configured to test multiple pages and responsive design across multiple viewports It also supports user authentication and can be integrated with various CI CD pipelines BackstopJS uses a configuration file to define the URLs to be tested viewports and other settings Pros of BackstopJSFlexible configuration BackstopJS is highly configurable which makes it suitable for testing different types of applications with various visual requirements It allows you to define custom scenarios set up different environments and adjust parameters to achieve the desired level of testing Powerful comparisons BackstopJS provides a powerful image comparison engine that detects even the smallest visual differences It uses pixel by pixel comparison and threshold values to determine whether a change is significant enough to be considered a failure Pricing It s an open source project and it s free Cons of BackstopJSComplexity BackstopJS requires more configuration and setup compared to other visual regression tools which may make it more complex to implement Slower testing BackstopJS can be slower to run compared to other visual regression tools due to how it generates and compares screenshots Limited support While BackstopJS has documentation and community support available it may not be as robust as other tools with larger user bases and more established support networks e g Percy In conclusion each tool offers unique features and benefits as well as potential drawbacks The choice of which to use for visual regression testing depends on various factors such as project requirements team preferences and available resources There are trade offs in selecting each tool and the decision depends on what factors are most important for your project In my opinion Percy offers the most comprehensive and user friendly solution making it an excellent option for teams looking for an advanced tool Chromatic is a suitable option for teams only needing to test their Storybook library while BackstopJS is better suited for teams looking for more comprehensive testing capabilities Jest Image Snapshot is a good option for developers working on smaller projects which use Jest Ultimately incorporating automated visual regression testing into your development process is critical to catching UI defects early and ensuring a high quality user experience for your website or application |
2023-03-19 17:28:08 |
海外TECH |
DEV Community |
Como adicionar banco de dados em uma aplicação .NET 7 [PT-BR] |
https://dev.to/andredarcie/como-adicionar-banco-de-dados-em-uma-aplicacao-net-7-pt-br-mi9
|
Como adicionar banco de dados em uma aplicação NET PT BR Criação do projetoVamos começar criando o projeto Antes disso precisamos verificar se a versão do NET instalada corresponde àdo tutorial executando o comando dotnet version No meu caso a versão é Em seguida execute o comando para encontrar as opções de templates disponíveis dotnet new listNo meu caso vou criar uma aplicação Web API dotnet new webapiVamos executar o projeto para garantir que tudo estáfuncionando dotnet run Configuração do SQLiteVamos dicionar os pacotes dotnet add package Microsoft EntityFrameworkCore Sqlitedotnet add package Microsoft EntityFrameworkCore ToolsO arquivo csproj mostraráa inclusão da referência ao pacote Microsoft EntityFrameworkCore Sqlite lt PackageReference Include Microsoft EntityFrameworkCore Sqlite Version gt Agora éhora de criar a classe DbContext dotnet ef dbcontext scaffold Data Source bancoDeDados sqlite Microsoft EntityFrameworkCore Sqlite o ModelsNo arquivo appsettings Development json adicione a seção ConnectionStrings com a string de conexão correspondente ConnectionStrings MeuBancoDeDados Data Source bancoDeDados sqlite No arquivo Models BancoDeDadosContext cs remova o método OnConfiguring pois jácolocamos a string de conexão no arquivo appsettings Na classe Program cs adicione o seguinte para configurar o uso do DbContext e da string de conexão criada builder Services AddDbContext lt BancoDeDadosContext gt options gt options UseSqlite builder Configuration GetConnectionString MeuBancoDeDados Crie uma tabela de testeApenas para garantir que esta tudo certo vamos criar uma tabela no banco de dados Crie uma classe Pessoa na pasta Models com uma propriedade Id No arquivo Models BancoDeDadosContext cs adicione o código public DbSet lt Pessoa gt Pessoas get set Execute o comando para adicionar uma migration e revise os novos arquivos gerados na pasta Migrations dotnet ef migrations add AdicionaPessoaE finalmente execute o comando dotnet ef database update para criar a tabela no banco de dados ConclusãoA tabela Pessoas estácriada no banco de dados e tudo estáfuncionando como esperado Verifique se tudo foi executado corretamente e prossiga com o desenvolvimento do projeto |
2023-03-19 17:12:10 |
ニュース |
BBC News - Home |
Putin in Mariupol: What the Russian president saw on his visit |
https://www.bbc.co.uk/news/world-europe-65007289?at_medium=RSS&at_campaign=KARANGA
|
leader |
2023-03-19 17:34:46 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【3か月で自然に痩せる!】ヘルシー志向の人がやりがちな、逆に太る朝食とは? - 3か月で自然に痩せていく仕組み |
https://diamond.jp/articles/-/318459
|
ダイエットにつきものの「我慢」や「意志力」が不要なのに、か月でするすると自然に痩せて度とリバウンドしない体が手に入るのは、「ダイエットが続く仕組み」や「挫折ポイントの抜け道」が、しっかり緻密に組み込まれているから。 |
2023-03-20 02:55:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「先輩からの長すぎるアドバイス」をうまく終わらせる“絶妙な切り返し”とは? - 気づかいの壁 |
https://diamond.jp/articles/-/318473
|
「先輩からの長すぎるアドバイス」をうまく終わらせる“絶妙な切り返しとは気づかいの壁発売週間で重版決定。 |
2023-03-20 02:50:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
仕事ができる人の「メンタル術」ベスト1 - 1秒で答えをつくる力 お笑い芸人が学ぶ「切り返し」のプロになる48の技術 |
https://diamond.jp/articles/-/319676
|
|
2023-03-20 02:40:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【株式投資必修講座 ステップ 5】株が割安かどうかを考える指標、PFR(株価収益率)の賢い使い方 - 株の投資大全 |
https://diamond.jp/articles/-/318944
|
|
2023-03-20 02:35:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
幸福とは、自分の人生を「よい物語」として(自分や他人に)語れること。不幸とは、人生という「物語」が破綻してしまったこと。 - シンプルで合理的な人生設計 |
https://diamond.jp/articles/-/319544
|
人生設計 |
2023-03-20 02:30:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【春分×一粒万倍日×天赦日】2023年最強開運日の春分、こうして過ごすと運気が上がる! - 開運大全 |
https://diamond.jp/articles/-/319470
|
一粒万倍日 |
2023-03-20 02:25:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【神さまとの[開運。]1日1話】 「みるみる金運がアップする人」が“超最強開運日・前日”にしていること - 1日1分見るだけで願いが叶う!ふくふく開運絵馬 |
https://diamond.jp/articles/-/319236
|
【神さまとの開運。 |
2023-03-20 02:20:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
「間に合わない」を英語でどういう? - 5分間英単語 |
https://diamond.jp/articles/-/319350
|
「間に合わない」を英語でどういう分間英単語「たくさん勉強したのに英語を話せない……」。 |
2023-03-20 02:15:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
タンス預金は税務署にバレる!?「バレる理由」を徹底解説!【書籍オンライン編集部セレクション】 - ぶっちゃけ相続 |
https://diamond.jp/articles/-/319172
|
税務調査 |
2023-03-20 02:10:00 |
ビジネス |
ダイヤモンド・オンライン - 新着記事 |
【開運の意外なコツ】いつまでも願いが叶わない人の残念な特徴とは? - 神さま仏さまがこっそり教えてくれたこと |
https://diamond.jp/articles/-/319498
|
神さま仏さま |
2023-03-20 02:05:00 |
コメント
コメントを投稿